package club.piclight.LibraryMan.model.entity;

import lombok.Data;

@Data //getter&setter
public class ResponseJSON {
    public static final int STATUS_OK = 200;
    public static final int STATUS_NON_INFO = 204;
    public static final int STATUS_BAD_REQUEST = 400;

    private int status;
    private String message;
    private Object data;

    public ResponseJSON(int status, String message, Object data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }

    public ResponseJSON(int status, String message) {
        this.status = status;
        this.message = message;
        this.data = null;
    }
}
